package com.gqj.bas.domain;

import com.gqj.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 资产分类对象 bas_sort
 * 
 * @author lxq
 * @date 2023-12-17
 */
public class BasSort extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long sortId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String sortName;

    /** 父类id */
    @Excel(name = "父类id")
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderno;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 子部门 */
    private List<SysDept> children = new ArrayList<SysDept>();

    public void setSortId(Long sortId) 
    {
        this.sortId = sortId;
    }

    public Long getSortId() 
    {
        return sortId;
    }
    public void setSortName(String sortName) 
    {
        this.sortName = sortName;
    }

    public String getSortName() 
    {
        return sortName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    public void setOrderno(Integer orderno) 
    {
        this.orderno = orderno;
    }

    public Integer getOrderno() 
    {
        return orderno;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<SysDept> getChildren() {
        return children;
    }

    public void setChildren(List<SysDept> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sortId", getSortId())
            .append("sortName", getSortName())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("orderno", getOrderno())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
